<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>1</p>
    <script language="javascript">
        var c=Math.floor(Math.random()*3)
        document.write("输出随机数：",c);
        </script>
        
</body>
</html>